package cn.mall.goods.service;

import cn.mall.base.utils.PageList;
import cn.mall.goods.domain.Goods;
import cn.mall.base.service.IBaseService;
import cn.mall.goods.dto.ExamineDTO;
import cn.mall.goods.query.GoodsQuery;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Jarvis-Smith
 * @since 2023-12-04
 */
public interface IGoodsService extends IBaseService<Goods> {

    void  update(Goods goods);
    void insert(Goods goods);
    String onSale(List<Long> ids);

    String offSale(List<Long> ids);

    void manualAudit(ExamineDTO examineDTO);

    PageList<Goods> newpageList(GoodsQuery query);

    PageList<Goods> pageListV2(GoodsQuery query);
}
